package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TVillageMapper;
import com.ruoyi.system.domain.TVillage;
import com.ruoyi.system.service.ITVillageService;

/**
 * 小区核酸的增删改查Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-16
 */
@Service
public class TVillageServiceImpl implements ITVillageService 
{
    @Autowired
    private TVillageMapper tVillageMapper;

    /**
     * 查询小区核酸的增删改查
     * 
     * @param id 小区核酸的增删改查主键
     * @return 小区核酸的增删改查
     */
    @Override
    public TVillage selectTVillageById(Long id)
    {
        return tVillageMapper.selectTVillageById(id);
    }

    /**
     * 查询小区核酸的增删改查列表
     * 
     * @param tVillage 小区核酸的增删改查
     * @return 小区核酸的增删改查
     */
    @Override
    public List<TVillage> selectTVillageList(TVillage tVillage)
    {
        return tVillageMapper.selectTVillageList(tVillage);
    }

    /**
     * 新增小区核酸的增删改查
     * 
     * @param tVillage 小区核酸的增删改查
     * @return 结果
     */
    @Override
    public int insertTVillage(TVillage tVillage)
    {
        return tVillageMapper.insertTVillage(tVillage);
    }

    /**
     * 修改小区核酸的增删改查
     * 
     * @param tVillage 小区核酸的增删改查
     * @return 结果
     */
    @Override
    public int updateTVillage(TVillage tVillage)
    {
        return tVillageMapper.updateTVillage(tVillage);
    }

    /**
     * 批量删除小区核酸的增删改查
     * 
     * @param ids 需要删除的小区核酸的增删改查主键
     * @return 结果
     */
    @Override
    public int deleteTVillageByIds(Long[] ids)
    {
        return tVillageMapper.deleteTVillageByIds(ids);
    }

    /**
     * 删除小区核酸的增删改查信息
     * 
     * @param id 小区核酸的增删改查主键
     * @return 结果
     */
    @Override
    public int deleteTVillageById(Long id)
    {
        return tVillageMapper.deleteTVillageById(id);
    }
}
